<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <title th:text="${session.title}">123</title>
    <link th:replace="common/header" />
    <link rel="stylesheet" th:href="@{/css/ace-skins.min.css}" />
    <script language="javascript" type="text/javascript" th:src="@{/js/My97DatePicker/WdatePicker.js}"></script>
</head>
<body class="navbar-fixed">
<div th:replace="common/top"></div>
<div class="container-fluid main_bg" id="main-container">
    <a id="menu-toggler" href="#"><span></span></a>
    <div th:replace="common/menu"></div>
    <div id="main-content" class="clearfix">
        <div id="page-content" class="clearfix">
            <div th:replace="common/title"></div>
            <form class="form-horizontal" th:object="${footLy}" method="post" th:action="@{/foot/footLy/add}" name="form" th:if="${session.footUser.qx.text == '管理员'}">
                <input type="hidden" name="sender" th:field="*{sender}" />
                <h3 class="header smaller lighter blue"><em class="icon-plus"></em>添加留言</h3>
                <div class="row-fluid">
                    <!--PAGE CONTENT BEGINS HERE-->
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label">发送人:</label>
                            <div class="controls">
                                管理员
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('sender')}" th:errors="*{sender}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="sendTime">发送时间:<span style="color:red">*</span></label>
                            <div class="controls">
                                <input type="text" th:field="*{sendTime}" name="sendTime" id="sendTime" class="input_fix2" placeholder="发送时间" />
                                <img onclick="WdatePicker({el:'sendTime',dateFmt:'yyyy-MM-dd'})" style="width:16px;height:22px"  src="" alt="" th:src="@{/js/My97DatePicker/skin/datePicker.gif}" />
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('sendTime')}" th:errors="*{sendTime}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="content">留言信息:<span style="color:red">*</span></label>
                            <div class="controls">
                                <textarea th:field="*{content}" name="content" id="content" class="input_fix" placeholder="留言信息" style="height:100px;"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('content')}" th:errors="*{content}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="content">发放奖励金额:</label>
                            <div class="controls">
                                <input type="text" th:field="*{money}" name="money" id="money" class="input_fix" placeholder="发放奖励金额" />
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('money')}" th:errors="*{money}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="content">发放奖励白色碎片(个):</label>
                            <div class="controls">
                                <input type="text" th:field="*{whiteChip}" name="whiteChip" class="input_fix" placeholder="发放奖励白色碎片(个)" />
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('whiteChip')}" th:errors="*{whiteChip}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="content">发放奖励绿色碎片(个):</label>
                            <div class="controls">
                                <input type="text" th:field="*{greenChip}" name="greenChip" class="input_fix" placeholder="发放奖励绿色碎片(个)" />
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('greenChip')}" th:errors="*{greenChip}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="content">发放奖励蓝色碎片(个):</label>
                            <div class="controls">
                                <input type="text" th:field="*{blueChip}" name="blueChip" class="input_fix" placeholder="发放奖励蓝色碎片(个)" />
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('blueChip')}" th:errors="*{blueChip}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="content">发放奖励紫色碎片(个):</label>
                            <div class="controls">
                                <input type="text" th:field="*{purpleChip}" name="purpleChip" class="input_fix" placeholder="发放奖励紫色碎片(个)" />
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('purpleChip')}" th:errors="*{purpleChip}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="content">发放奖励橙色碎片(个):</label>
                            <div class="controls">
                                <input type="text" th:field="*{orangeChip}" name="orangeChip" class="input_fix" placeholder="发放奖励橙色碎片(个)" />
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('orangeChip')}" th:errors="*{orangeChip}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="text-center span12">
                        <button class="btn btn-primary" type="submit"><em class="icon-save"></em>提交</button>
                        <button class="btn btn-danger" type="reset"><em class="icon-remove"></em>取消</button>
                        <a class="btn" type="button" th:href="@{/foot/footLy/search}"><em class="icon-arrow-left"></em>返回</a>
                    </div>
                </div>
            </form>
            <!--/#page-content-->
        </div>
        <div th:replace="common/skin :: skin"></div>
    </div>
    <!--/#main-content-->
</div>
<!--/.fluid-container#main-container-->
<div th:replace="common/js"></div>
</body>
</html>